
module.exports = (sequelize, Types) => {
    const Tomovie = sequelize.define('tomovie', {
        id: {
            type: Types.STRING(50),
            primaryKey: true//主键
        },
        txt: Types.STRING(80),
        info: Types.STRING(100),
        img: Types.STRING(200),
        url: Types.STRING(200),
    }, {
        tableName: 'tomovie',
        timestamps: false,//禁止seq自动添加createAt,updatedAt
    });
    Tomovie.sync();
    return Tomovie;
};